package cn.taichoo.server.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 用户和业务关联关系对象 tai_user_relation_info
 *
 * @author Wuzh
 * @date 2025-03-17
 */
@Data
@TableName("tai_user_relation_info")
public class UserRelationEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 关联的业务Id
     */
    @Schema(description = "关联的业务Id")
    @TableField("biz_id")
    @Excel(name = "关联的业务Id")
    private Long bizId;

    /**
     * 用户Id
     */
    @Schema(description = "用户Id")
    @Excel(name = "用户Id")
    @TableField("user_id")
    private Long userId;

    /**
     * 部门ID
     */
    @Schema(description = "邀请人Id")
    @Excel(name = "部门ID")
    @TableField("dept_id")
    private Long deptId;

    /**
     * 岗位编号数组
     */
    @Schema(description = "岗位编号数组")
    @Excel(name = "岗位编号数组")
    @TableField("post_ids")
    private String postIds;

    /**
     * 业务类型
     * 1、租户，表示该记录的用户属于某租户
     * 2、APP，表示该记录的用户属于某APP
     */
    @Schema(description = "业务类型 1、租户，表示该记录的用户属于某租户 2、APP，表示该记录的用户属于某APP")
    @TableField("type")
    @Excel(name = "业务类型 1、租户，表示该记录的用户属于某租户 2、APP，表示该记录的用户属于某APP")
    private Integer type;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @TableField("deleted")
    @Excel(name = "是否删除")
    private Integer deleted;

}
